﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<InMyCity.Models.EventModel>" %>

<asp:Content ID="CreateTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Create
</asp:Content>

<asp:Content ID="CreateContent" ContentPlaceHolderID="MainContent" runat="server">

<hgroup class="title">
        <h1>Create.</h1>
        <h2>Add a new event.</h2>
    </hgroup>

    <% using (Html.BeginForm("CreateEvent","Home")) { %>
        <%: Html.AntiForgeryToken() %>
        <%: Html.ValidationSummary() %>

        <fieldset>
            <legend>Register Event</legend>
            <ol>
                <li>
                    <%: Html.LabelFor(m => m.EventName) %>
                    <%: Html.TextBoxFor(m => m.EventName, new { id = "EventName" })%>
                </li>
                <li>
                    <%: Html.LabelFor(m => m.Description) %>
                    <%: Html.TextAreaFor(m => m.Description, new { id = "EventDescription" })%>
                </li>
            </ol>
            <input type="submit" value="Create" />
        </fieldset>
    <% } %>

</asp:Content>

<asp:Content ID="scriptsContent" ContentPlaceHolderID="ScriptsSection" runat="server">
    <%: Scripts.Render("~/bundles/jqueryval") %>
</asp:Content>


